﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Runtime.Serialization;

namespace G.BI
{
    [DataContract]
    public class AppStartEvent : BaseEvent
    {
        public AppStartEvent()
        {
            EventID = 1;
        }
        [DataMember]
        public DateTime StartTime { get; set; }

        [DataMember]
        public string DeviceId { get; set; }
    }

    [DataContract]
    public abstract class BaseEvent
    {
        public short EventID { get; protected set; }

        public string GetSerializaString()
        {
            return G.Utils.SerializerHelp.JsonSerializer(this);
        }
    }
}
